Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query Failure #6947

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Query Failure #6947

wants to merge 1 commit into from

Conversation

bergundy
Copy link
Member

@bergundy bergundy commented Dec 6, 2024

What changed?

Attach a Failure object from query failures to the QueryFailure serviceerror.

Why?

Allows encryption of failure messages and stack traces.

See also temporalio/api/pull/503.

@bergundy bergundy requested a review from a team as a code owner December 6, 2024 17:48
// Abort and fail the test.
s.NoError(ctx.Err())
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a small comment explaining the purpose of the second half of the test? I don't quite see the difference to the first half.

s.Equal("my error message", query1FailedErr.Message)
s.Equal("my failure error message", query1FailedErr.Failure.Message)

go func() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

q: why not just a single test, with both "QueryWorkflow" and "PollWorkflowTaskQueue/RespondQueryTaskCompleted" in a separate goroutines? What are you testing by testing like that?

Copy link
Member Author

@bergundy bergundy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the reviews.

I'll add more comments to clarify.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants